
#include <stddef.h>
#include <SYS\STAT.H>

#ifdef DMC
	struct _stat64 {
		int		st_dev; // _dev_t
		unsigned short	st_ino; // _ino_t  
		unsigned short	st_mode;
		int		st_nlink;
		int		st_uid;
		int		st_gid;
		unsigned short	st_rdev; //_dev_t
		
		long long 	st_size; 	//__int64 
		long long 	st_atime;  //__time64_t
		long long 	st_mtime;
		long long 	st_ctime;
	} ;
#endif

	
int main(){
	int i ;
	i	= sizeof(struct _stat64) ;
	printf("%d	_stat64.sizeof\n", i);

	i	= offsetof( struct _stat64, st_dev)  ;
	printf("%d	st_dev\n",i );
	i	= offsetof( struct _stat64, st_ino)  ;
	printf("%d	st_ino\n",i );
	i	= offsetof( struct _stat64, st_mode)  ;
	printf("%d	st_mode\n",i );
	i	= offsetof( struct _stat64, st_nlink)  ;
	printf("%d	st_nlink\n",i );
	i	= offsetof( struct _stat64, st_uid)  ;
	printf("%d	st_uid\n",i );
	i	= offsetof( struct _stat64, st_gid)  ;
	printf("%d	st_gid\n",i );
	i	= offsetof( struct _stat64, st_rdev)  ;
	printf("%d	st_rdev\n",i );
	i	= offsetof( struct _stat64, st_size)  ;
	printf("%d	st_size\n",i );
	i	= offsetof( struct _stat64, st_atime)  ;
	printf("%d	st_atime\n",i );
	i	= offsetof( struct _stat64, st_mtime)  ;
	printf("%d	st_mtime\n",i );
	i	= offsetof( struct _stat64, st_ctime)  ;
	printf("%d	st_ctime\n",i );
	return 0;
}